package com.trg.designmodel.composite;

/**
 * @ClassName: Client
 * @Description:
 * @Author: tangrg
 * @Date: 2021/7/7 11:48
 * @Version: 1.0
 * @Return:
 **/
public class Client {

    public static void main(String[] args) {
        Universtiy universtiy = new Universtiy("清华大学", "国内顶尖大学");
        College college = new College("计算机学院", "计算机学院很🐂");
        Department department = new Department("通信工程", "通信工程比较难");
        Department department1 = new Department("网络工程", "网络工程比较难");
        college.add(department);
        college.add(department1);
        universtiy.add(college);

        College college1 = new College("音乐学院", "音乐学院的妹子很漂亮");
        Department department2 = new Department("音乐鉴赏", "欣赏音乐是一种享受");
        college1.add(department2);
        universtiy.add(college1);

        //查看当前学校的所有院系情况
        universtiy.print();
    }
}
